// 资产信息
var assetsColumns = [{
  id: 'number',
  title: '序号',
  width: 50,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'no',
  title: '资产编号',
  width: 160,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'type',
  title: '资产类目',
  width: 73,
  type: 'string',
  columnClass: 'text-center',
},{
  id: 'type1',
  title: '资产类别',
  width: 73,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'status',
  title: '目前状态',
  width: 73,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'address',
  title: '放置地点',
  width: 73,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'username',
  title: '归属者',
  width: 73,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'proname',
  title: '归属项目',
  width: 100,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'form',
  title: '来源方式',
  width: 73,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'msg',
  title: '资产描述',
  type: 'string',
  columnClass: 'text-left',
}, {
  id: 'operation',
  title: '操作',
  width: 70,
  type: 'string',
  columnClass: 'text-center',
  resolution: function (value, record, column, grid, dataNo, columnNo) {
    var content = '';
    content += '<button class="btn btn-xs btn-success" onclick="editast(' + record.id + ');"><i class="fa fa-edit"></i>  办理</button>';
    // content += '  ';
    // content += '<button class="btn btn-xs btn-danger" onclick="del(' + record.id + ');"><i class="fa fa-trash-o"></i>  删除</button>';
    return content;
  }
}];
var assetsOption = {
  lang: 'zh-cn',
  ajaxLoad: false,
  // loadURL:'url',
  exportFileName: '资产信息',
  datas: [{
    number: '1',
    no: 'NJSTS201801021800',
    type: '办公',
    type1: '笔记本',
    status: '闲置',
    address: '南京',
    username: '张三',
    proname: '中国移动',
    form: '借货',
    msg: '资产说明测试数据',
  }, ],
  columns: assetsColumns,
  gridContainer: 'assetsContainer',
  toolbarContainer: 'assetsToolBarContainer',
  tools: '',
  pageSize: 10,
  pageSizeLimit: [10, 15, 20]
};
var assetsGrid = $.fn.dlshouwen.grid.init(assetsOption);
$(function () {
  assetsGrid.load();
});

// 资产办理
function editast(id) {
  window.location.href = "../../adms/edit/edit-assets.html" + '?id=' + id;
}

// 工作安排
var workColumns = [{
  id: 'number',
  title: '序号',
  width: 50,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'time',
  title: '日期时间',
  width: 160,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'msg',
  title: '备注说明',
  type: 'string',
  columnClass: 'text-left',
}, {
  id: 'operation',
  title: '操作',
  width: 130,
  type: 'string',
  columnClass: 'text-center',
  resolution: function (value, record, column, grid, dataNo, columnNo) {
    var content = '';
    content += '<button class="btn btn-xs btn-info"><i class="fa fa-edit"></i>  编辑</button>';
    content += '  ';
    content += '<button class="btn btn-xs btn-danger" onclick="del(' + record.id + ');"><i class="fa fa-trash-o"></i>  删除</button>';
    return content;
  }
}];
var workOption = {
  lang: 'zh-cn',
  ajaxLoad: false,
  // loadURL:'url',
  exportFileName: '工作安排',
  datas: [{
    number: '1',
    time: '2018/01/02',
    msg: '备注说明测试数据',
  }, ],
  columns: workColumns,
  gridContainer: 'workContainer',
  toolbarContainer: 'workToolBarContainer',
  tools: '',
  pageSize: 10,
  pageSizeLimit: [10, 15, 20]
};
var workGrid = $.fn.dlshouwen.grid.init(workOption);
$(function () {
  workGrid.load();
});

// 个人资产列表信息
var procColumns = [{
  id: 'number',
  title: '序号',
  width: 50,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'time',
  title: '申请时间',
  width: 100,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'msg',
  title: '申请说明',
  type: 'string',
  columnClass: 'text-left',
}, {
  id: 'operation',
  title: '操作',
  width: 70,
  type: 'string',
  columnClass: 'text-center',
  resolution: function (value, record, column, grid, dataNo, columnNo) {
    var content = '';
    content += '<button class="btn btn-xs btn-primary" onclick="selpc(' + record.id + ');"><i class="icon-eye-open"></i>  查看</button>';
    // content += '  ';
    // content += '<button class="btn btn-xs btn-danger" onclick="del(' + record.id + ');"><i class="fa fa-trash-o"></i>  删除</button>';
    return content;
  }
}];
var procOption = {
  lang: 'zh-cn',
  ajaxLoad: false,
  // loadURL:'url',
  exportFileName: '个人资产列表信息',
  datas: [{
    number: '1',
    time: '2018/01/02',
    msg: '申请说明测试数据',
  }, ],
  columns: procColumns,
  gridContainer: 'procContainer',
  toolbarContainer: 'procToolBarContainer',
  tools: '',
  pageSize: 10,
  pageSizeLimit: [10, 15, 20]
};
var procGrid = $.fn.dlshouwen.grid.init(procOption);
$(function () {
  procGrid.load();
});

function selpc(id) {
  window.location.href = "../../adms/edit/edit-proc.html" + '?id=' + id;
}

// 申请清单
var priceColumns = [{
  id: 'number',
  title: '序号',
  width: 50,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'no',
  title: '资产编号',
  width: 160,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'type',
  title: '资产类目',
  width: 73,
  type: 'string',
  columnClass: 'text-center',
},{
  id: 'type1',
  title: '资产类别',
  width: 73,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'status',
  title: '目前状态',
  width: 73,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'address',
  title: '放置地点',
  width: 73,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'username',
  title: '归属者',
  width: 73,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'proname',
  title: '归属项目',
  width: 100,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'form',
  title: '来源方式',
  width: 73,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'msg',
  title: '资产描述',
  type: 'string',
  columnClass: 'text-left',
}, {
  id: 'operation',
  title: '操作',
  width: 70,
  type: 'string',
  columnClass: 'text-center',
  resolution: function (value, record, column, grid, dataNo, columnNo) {
    var content = '';
    content += '<button class="btn btn-xs btn-success" onclick="editast1(' + record.id + ');"><i class="fa fa-edit"></i>  办理</button>';
    // content += '  ';
    // content += '<button class="btn btn-xs btn-danger" onclick="del(' + record.id + ');"><i class="fa fa-trash-o"></i>  删除</button>';
    return content;
  }
}];
var priceOption = {
  lang: 'zh-cn',
  ajaxLoad: false,
  // loadURL:'url',
  exportFileName: '申请清单',
  datas: [{
    number: '1',
    no: 'NJSTS201801021800',
    type: '办公',
    type1: '笔记本',
    status: '占用',
    address: '南京',
    username: '张三',
    proname: '',
    form: '资产调配',
    msg: '资产说明测试数据',
  }, ],
  columns: priceColumns,
  gridContainer: 'priceContainer',
  toolbarContainer: 'priceToolBarContainer',
  tools: '',
  pageSize: 10,
  pageSizeLimit: [10, 15, 20]
};
var priceGrid = $.fn.dlshouwen.grid.init(priceOption);
$(function () {
  priceGrid.load();
});


// 资产办理
function editast1(id) {
  window.location.href = "../../adms/edit/edit-assets-1.html" + '?id=' + id;
}


// 历史报价库
var pricelogColumns = [{
  id: 'number',
  title: '序号',
  width: 50,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'cno',
  title: '采购单号',
  width: 170,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'end',
  title: '结果',
  width: 50,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'list',
  title: '资产类目',
  width: 73,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'type',
  title: '资产类别',
  width: 73,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'msg',
  title: '资产描述',
  type: 'string',
  columnClass: 'text-left',
}, {
  id: 'size',
  title: '数量',
  width: 50,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'price',
  title: '总金额',
  width: 150,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'a',
  title: '拆分单件',
  width: 50,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'abuy',
  title: '供货商',
  width: 73,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'tel',
  title: '联系人',
  width: 73,
  type: 'string',
  columnClass: 'text-center',
}, ];
var pricelogOption = {
  lang: 'zh-cn',
  ajaxLoad: false,
  // loadURL:'url',
  exportFileName: '历史报价库',
  datas: [{
    number: '1',
    cno: 'NJSTS20180102192222',
    end: '已购',
    list: '硬件',
    type: '笔记本',
    msg: '资产描述',
    size: '12',
    price: '￥2222.99元',
    a: '12',
    abuy: '联想',
    tel: '张三',
  }, ],
  columns: pricelogColumns,
  gridContainer: 'pricelogContainer',
  toolbarContainer: 'pricelogToolBarContainer',
  tools: '',
  pageSize: 10,
  pageSizeLimit: [10, 15, 20]
};
var pricelogGrid = $.fn.dlshouwen.grid.init(pricelogOption);
$(function () {
  pricelogGrid.load();
});

// 供应商列表
var supplierColumns = [{
  id: 'number',
  title: '序号',
  width: 50,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'cno',
  title: '采购单号',
  width: 170,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'list',
  title: '资产类目',
  width: 73,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'type',
  title: '资产类别',
  width: 73,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'msg',
  title: '资产描述',
  type: 'string',
  columnClass: 'text-left',
}, {
  id: 'size',
  title: '数量',
  width: 50,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'price',
  title: '总金额',
  width: 150,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'a',
  title: '拆分单件',
  width: 50,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'abuy',
  title: '供货商',
  width: 73,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'tel',
  title: '经办人',
  width: 73,
  type: 'string',
  columnClass: 'text-center',
},{
  id: 'operation',
  title: '操作',
  width: 70,
  type: 'string',
  columnClass: 'text-center',
  resolution: function (value, record, column, grid, dataNo, columnNo) {
    var content = '';
    content += '<button class="btn btn-xs btn-info" onclick="down(' + record.id + ');"><i class="icon-cloud-download"></i>  报价文件</button>';
    // content += '  ';
    // content += '<button class="btn btn-xs btn-danger" onclick="del(' + record.id + ');"><i class="fa fa-trash-o"></i>  删除</button>';
    return content;
  }
}];
var supplierOption = {
  lang: 'zh-cn',
  ajaxLoad: false,
  // loadURL:'url',
  exportFileName: '供应商列表',
  datas: [{
    number: '1',
    cno: 'NJSTS20180102192222',
    list: '硬件',
    type: '笔记本',
    msg: '资产描述',
    size: '12',
    price: '￥2222.99元',
    a: '12',
    abuy: '联想',
    tel: '张三',
  }, ],
  columns: supplierColumns,
  gridContainer: 'supplierContainer',
  toolbarContainer: 'supplierToolBarContainer',
  tools: '',
  pageSize: 10,
  pageSizeLimit: [10, 15, 20]
};
var supplierGrid = $.fn.dlshouwen.grid.init(supplierOption);
$(function () {
  supplierGrid.load();
});

//文件下载权限事件
function down(id) {
  //询问框
  layer.confirm('权限不足，是否申请更高权限？', {
    title: '提示信息',
    btn: ['申请', '取消'] //按钮
  }, function () {
    layer.msg('申请成功', {
      icon: 1
    });
  });
}

function selprice(id) {
  $('.hdlog').show();
  $('.hdgbuy').show();
}



// 采购清单
var plistColumns = [{
  id: 'number',
  title: '序号',
  width: 50,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'list',
  title: '资产类目',
  width: 73,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'type',
  title: '资产类别',
  width: 73,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'msg',
  title: '资产描述',
  type: 'string',
  columnClass: 'text-left',
}, {
  id: 'size',
  title: '数量',
  width: 54,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'price',
  title: '预计金额',
  width: 150,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'operation',
  title: '操作',
  width: 150,
  type: 'string',
  columnClass: 'text-center',
  resolution: function (value, record, column, grid, dataNo, columnNo) {
    var content = '';
    content += '<button class="btn btn-xs btn-success" onclick=""><i class="icon-eye-open"></i>  供应商</button>';
    content += '  ';
    content += '<button class="btn btn-xs btn-info" onclick="shgs();"><i class="icon-plus"></i>  供应商</button>';
    // content += '  ';
    // content += '<button class="btn btn-xs btn-danger" onclick="del(' + record.id + ');"><i class="fa fa-trash-o"></i>  删除</button>';
    return content;
  }
}];
var plistOption = {
  lang: 'zh-cn',
  ajaxLoad: false,
  // loadURL:'url',
  exportFileName: '采购比价单列表信息',
  datas: [{
    number: '1',
    list: '硬件',
    type: '笔记本',
    msg: '资产描述测试数据',
    size: '12',
    price: '￥2222.99元'
  }, ],
  columns: plistColumns,
  gridContainer: 'plistContainer',
  toolbarContainer: 'plistToolBarContainer',
  tools: '',
  pageSize: 10,
  pageSizeLimit: [10, 15, 20]
};
var plistGrid = $.fn.dlshouwen.grid.init(plistOption);
$(function () {
  plistGrid.load();
});

// 采购订单维护
var plstbColumns = [{
  id: 'number',
  title: '序号',
  width: 50,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'list',
  title: '资产类目',
  width: 73,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'type',
  title: '资产类别',
  width: 73,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'msg',
  title: '资产描述',
  type: 'string',
  columnClass: 'text-left',
}, {
  id: 'size',
  title: '数量',
  width: 54,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'price',
  title: '预计金额',
  width: 150,
  type: 'string',
  columnClass: 'text-center',
}, ];
var plstbOption = {
  lang: 'zh-cn',
  ajaxLoad: false,
  // loadURL:'url',
  exportFileName: '采购比价单列表信息',
  datas: [{
    number: '1',
    list: '硬件',
    type: '笔记本',
    msg: '资产描述测试数据',
    size: '12',
    price: '￥2222.99元'
  }, ],
  columns: plstbColumns,
  gridContainer: 'plstbContainer',
  toolbarContainer: 'plstbToolBarContainer',
  tools: '',
  pageSize: 10,
  pageSizeLimit: [10, 15, 20]
};
var plstbGrid = $.fn.dlshouwen.grid.init(plstbOption);
$(function () {
  plstbGrid.load();
});


// 供货协议列表上载
var gltsColumns = [{
  id: 'number',
  title: '序号',
  width: 50,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'list',
  title: '资产类目',
  width: 73,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'type',
  title: '资产类别',
  width: 73,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'msg',
  title: '资产描述',
  type: 'string',
  columnClass: 'text-left',
}, {
  id: 'size',
  title: '数量',
  width: 50,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'price',
  title: '总金额',
  width: 150,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'a',
  title: '拆分单件',
  width: 50,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'abuy',
  title: '供货商',
  width: 73,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'tel',
  title: '经办人',
  width: 73,
  type: 'string',
  columnClass: 'text-center',
},{
  id: 'operation',
  title: '操作',
  width: 180,
  type: 'string',
  columnClass: 'text-center',
  resolution: function (value, record, column, grid, dataNo, columnNo) {
    var content = '';
    content += '<button class="btn btn-xs btn-info" onclick="down();"><i class="icon-cloud-download"></i>  报价文件</button>';
    content += '  ';
    content += '<button class="btn btn-xs btn-success" onclick="shgs();"><i class="icon-cloud-upload"></i>  协议上传</button>';
    return content;
  }
}];
var gltsOption = {
  lang: 'zh-cn',
  ajaxLoad: false,
  // loadURL:'url',
  exportFileName: '供应商列表',
  datas: [{
    number: '1',
    list: '硬件',
    type: '笔记本',
    msg: '资产描述',
    size: '12',
    price: '￥2222.99元',
    a: '12',
    abuy: '联想',
    tel: '张三',
  }, ],
  columns: gltsColumns,
  gridContainer: 'gltsContainer',
  toolbarContainer: 'gltsToolBarContainer',
  tools: '',
  pageSize: 10,
  pageSizeLimit: [10, 15, 20]
};
var gltsGrid = $.fn.dlshouwen.grid.init(gltsOption);
$(function () {
  gltsGrid.load();
});

// 供货协议列表下载
var gltstColumns = [{
  id: 'number',
  title: '序号',
  width: 50,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'list',
  title: '资产类目',
  width: 73,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'type',
  title: '资产类别',
  width: 73,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'msg',
  title: '资产描述',
  type: 'string',
  columnClass: 'text-left',
}, {
  id: 'size',
  title: '数量',
  width: 50,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'price',
  title: '总金额',
  width: 150,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'a',
  title: '拆分单件',
  width: 50,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'abuy',
  title: '供货商',
  width: 73,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'tel',
  title: '经办人',
  width: 73,
  type: 'string',
  columnClass: 'text-center',
},{
  id: 'operation',
  title: '操作',
  width: 180,
  type: 'string',
  columnClass: 'text-center',
  resolution: function (value, record, column, grid, dataNo, columnNo) {
    var content = '';
    content += '<button class="btn btn-xs btn-info" onclick="down();"><i class="icon-cloud-download"></i>  报价文件</button>';
    content += '  ';
    content += '<button class="btn btn-xs btn-info" onclick="shgs();"><i class="icon-cloud-download"></i>  协议合同</button>';
    return content;
  }
}];
var gltstOption = {
  lang: 'zh-cn',
  ajaxLoad: false,
  // loadURL:'url',
  exportFileName: '供应商列表',
  datas: [{
    number: '1',
    list: '硬件',
    type: '笔记本',
    msg: '资产描述',
    size: '12',
    price: '￥2222.99元',
    a: '12',
    abuy: '联想',
    tel: '张三',
  }, ],
  columns: gltstColumns,
  gridContainer: 'gltstContainer',
  toolbarContainer: 'gltstToolBarContainer',
  tools: '',
  pageSize: 10,
  pageSizeLimit: [10, 15, 20]
};
var gltstGrid = $.fn.dlshouwen.grid.init(gltstOption);
$(function () {
  gltstGrid.load();
});

// 供货协议列表下载、用章确认
var gltszColumns = [{
  id: 'number',
  title: '序号',
  width: 50,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'list',
  title: '资产类目',
  width: 73,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'type',
  title: '资产类别',
  width: 73,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'msg',
  title: '资产描述',
  type: 'string',
  columnClass: 'text-left',
}, {
  id: 'size',
  title: '数量',
  width: 50,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'price',
  title: '总金额',
  width: 150,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'a',
  title: '拆分单件',
  width: 50,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'abuy',
  title: '供货商',
  width: 73,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'tel',
  title: '经办人',
  width: 73,
  type: 'string',
  columnClass: 'text-center',
},{
  id: 'ftgz',
  title: '是否盖章',
  width: 74,
  type: 'string',
  columnClass: 'text-center',
},{
  id: 'operation',
  title: '操作',
  width: 260,
  type: 'string',
  columnClass: 'text-center',
  resolution: function (value, record, column, grid, dataNo, columnNo) {
    var content = '';
    content += '<button class="btn btn-xs btn-info" onclick="down();"><i class="icon-cloud-download"></i>  报价文件</button>';
    content += '  ';
    content += '<button class="btn btn-xs btn-info" onclick="down();"><i class="icon-cloud-download"></i>  协议合同</button>';
    content += '  ';
    content += '<button class="btn btn-xs btn-success" onclick="shgs();"><i class="icon-ok-sign"></i>  盖章确认</button>';
    return content;
  }
}];
var gltszOption = {
  lang: 'zh-cn',
  ajaxLoad: false,
  // loadURL:'url',
  exportFileName: '供应商列表',
  datas: [{
    number: '1',
    list: '硬件',
    type: '笔记本',
    msg: '资产描述',
    size: '12',
    price: '￥2222.99元',
    a: '12',
    abuy: '联想',
    tel: '张三',
    ftgz: '是'
  }, ],
  columns: gltszColumns,
  gridContainer: 'gltszContainer',
  toolbarContainer: 'gltszToolBarContainer',
  tools: '',
  pageSize: 10,
  pageSizeLimit: [10, 15, 20]
};
var gltszGrid = $.fn.dlshouwen.grid.init(gltszOption);
$(function () {
  gltszGrid.load();
});


// 供应商报价
var gpuyColumns = [{
  id: 'number',
  title: '序号',
  width: 50,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'list',
  title: '资产类目',
  width: 73,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'type',
  title: '资产类别',
  width: 73,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'msg',
  title: '资产描述',
  type: 'string',
  columnClass: 'text-left',
}, {
  id: 'size',
  title: '数量',
  width: 50,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'price',
  title: '总金额',
  width: 150,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'a',
  title: '拆分单件',
  width: 50,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'abuy',
  title: '供货商',
  width: 73,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'tel',
  title: '经办人',
  width: 73,
  type: 'string',
  columnClass: 'text-center',
},{
  id: 'operation',
  title: '操作',
  width: 130,
  type: 'string',
  columnClass: 'text-center',
  resolution: function (value, record, column, grid, dataNo, columnNo) {
    var content = '';
    content += '<button class="btn btn-xs btn-info" onclick="edit(' + record.id + ');"><i class="fa fa-edit"></i>  编辑</button>';
    content += '  ';
    content += '<button class="btn btn-xs btn-danger" onclick="del(' + record.id + ');"><i class="fa fa-trash-o"></i>  删除</button>';
    return content;
  }
}];
var gpuyOption = {
  lang: 'zh-cn',
  ajaxLoad: false,
  // loadURL:'url',
  exportFileName: '供应商列表',
  datas: [{
    number: '1',
    list: '硬件',
    type: '笔记本',
    msg: '资产描述',
    size: '12',
    price: '￥2222.99元',
    a: '12',
    abuy: '联想',
    tel: '张三',
  }, ],
  columns: gpuyColumns,
  gridContainer: 'gpuyContainer',
  toolbarContainer: 'gpuyToolBarContainer',
  tools: '',
  pageSize: 10,
  pageSizeLimit: [10, 15, 20]
};
var gpuyGrid = $.fn.dlshouwen.grid.init(gpuyOption);
$(function () {
  gpuyGrid.load();
});

function hdgf(){
  $('.hdgf').hide();
}
function shgf(id){
  $('.hdgf').show();
}
function hdgs(){
  $('.hdgs').hide();
}
function shgs(){
  $('.hdgs').show();
}